Part Number Hot Search : 
B1515 MAB357 MAX17 XN121M 9601V STP20N M1389 74LV1G
Product Description
Full Text Search
 

To Download AT45DB321D-TU Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? single 2.7v - 3.6v supply ? rapids ? serial interface: 66 mhz maximum clock frequency ? spi compatible modes 0 and 3 ? user configurable page size ? 512 bytes per page ? 528 bytes per page ? page program operation ? intelligent programming operation ? 8,192 pages (512/528 bytes/page) main memory ? flexible erase options ? page erase (512 bytes) ? block erase (4 kbytes) ? sector erase (64 kbytes) ? chip erase (32 mbits) ? two sram data buffers (512/528 bytes) ? allows receiving of data whil e reprogramming the flash array ? continuous read capability through entire array ? ideal for code shadowing applications ? low-power dissipation ? 7 ma active read current typical ? 25 a standby current typical ? 5 a deep power down typical ? hardware and software data protection features ? individual sector ? sector lockdown for secure code and data storage ? individual sector ? security: 128-byte security register ? 64-byte user programmable space ? unique 64-byte device identifier ? jedec standard manufacturer and device id read ? 100,000 program/erase cycles per page minimum ? data retention ? 20 years ? industrial temperature range ? green (pb/halide-free/rohs co mpliant) packaging options 1. description the at45db321d is a 2.7-volt, serial-interface sequential access flash memory ideally suited for a wide variety of digital voice-, image-, program code- and data-stor- age applications. the at45db321d supports r apids serial interface for applications requiring very high speed operations. rapids serial interface is spi compatible for frequencies up to 66 mhz. its 34,603,008 bits of memory are organized as 8,192 pages of 512 bytes or 528 bytes each. in addition to the main memory, the at45db321d also contains two sram buffers of 512/528 bytes each. the buffers allow the receiving of data while a page in the main memory is being reprogrammed, as well as writing a continuous data stream. eeprom emulation (bit or byte alterabil- ity) is easily handled with a self-contained three step read-modify-write operation. unlike conventional flash memories that are accessed randomly with multiple address lines and a parallel interface, the dataflash uses a rapids serial interface to 32-megabit 2.7-volt dataflash ? at45db321d preliminary 3597h?dflash?02/07
2 3597h?dflash?02/07 at45db321d [preliminary] sequentially access its data. the simple sequent ial access dramatically reduces active pin count, facilitates hardware layout, increases syst em reliability, minimizes switching noise, and reduces package size. the device is optimized fo r use in many commercial and industrial appli- cations where high-density, low-pin count, low-voltage and low-po wer are essential. to allow for simple in-system reprogrammabi lity, the at45db321d does not require high input voltages for programming. the device operates from a single power supply, 2.7v to 3.6v, for both the program and read operations. the at45db321d is enabled through the chip select pin (cs ) and accessed via a three-wire interface consisting of the serial input (si), serial output (so), and the serial clock (sck). all programming and erase cycles are self-timed. 2. pin configurations and pinouts figure 2-1. mlf and cason top view through package figure 2-2. soic top view figure 2-3. dataflash card (1) top view through package note: 1. see at45dcb004d datasheet. figure 2-4. tsop top view: type 1 note: tsop package is not recommended for new designs. future die shrinks will support 8-pin packages only. si sck reset cs so gnd vcc wp 8 7 6 5 1 2 3 4 1 2 3 4 8 7 6 5 si sck reset cs so g n d v cc wp 76 54321 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 rdy/busy reset w p nc nc vcc gnd nc nc nc cs sck si so nc nc nc nc nc nc nc nc nc nc nc nc nc nc
3 3597h?dflash?02/07 at45db321d [preliminary] table 2-1. pin configurations symbol name and function asserted state type cs chip select: asserting the cs pin selects the device. w hen the cs pin is deasserted, the device will be deselected and normally be placed in t he standby mode (not deep power-down mode), and the output pin (so) will be in a high-impedance state. w hen the device is deselected, data will not be accepted on the input pin (si). a high-to-low transition on the cs pin is required to start an operation, and a low-to-high transition is required to end an operation. w hen ending an internally self-timed operation such as a program or erase cycle, the device will not enter the standby mode until the completion of the operation. low input sck serial clock: this pin is used to provide a clock to the device and is used to control the flow of data to and from the device. command, address, and input data present on the si pin is always latched on the rising edge of sck, while output data on the so pin is always clocked out on the falling edge of sck. ? input si serial input: the si pin is used to shift data into the device. the si pin is used for all data input including command and address sequences. data on the si pin is always latched on the rising edge of sck. if the ser/byte pin is always driven low, the si pin should be a ?no connect?. ? input so serial output: the so pin is used to shift data out from the device. data on the so pin is always clocked out on the falling edge of sck. if the ser/byte pin is always driven low, the so pin should be a ?no connect?. ? output w p write protect: w hen the w p pin is asserted, all sectors specified for protection by the sector protection register will be protected against prog ram and erase operations regardless of whether the enable sector protection command has been issued or not. the w p pin functions independently of the software cont rolled protection method. after the w p pin goes low, the content of the sector protection register cannot be modified. if a program or erase command is issued to the device while the w p pin is asserted, the device will simply ignore the command and perform no operat ion. the device will return to the idle state once the cs pin has been deasserted. the enable sector protection command and sector lockdown command, however, will be recognized by the device when the w p pin is asserted. the w p pin is internally pulled-high and may be left floating if hardware controlled protection will not be used. however, it is recommended that the w p pin also be externally connected to v cc whenever possible. low input reset reset: a low state on the reset pin (reset ) will terminate the operation in progress and reset the internal state machine to an idle state. the device will remain in the reset condition as long as a low level is present on the reset pin. normal operation can resume once the reset pin is brought back to a high level. the device incorporates an internal power-on rese t circuit, so there are no restrictions on the reset pin during power-on sequences. if this pin and feature are not utilized it is recommended that the reset pin be driven high externally. low input rdy/busy ready/busy: this open drain output pin will be driven low when the device is busy in an internally self-timed operation. this pin, which is normally in a high state (through an external pull-up resistor), will be pulled low during prog ramming/erase operations, compare operations, and page-to-buffer transfers. the busy status indicates that the flash memo ry array and one of the buffers cannot be accessed; read and write operations to the other buffer can still be performed. ? output v cc device power supply: the v cc pin is used to supply the source voltage to the device. operations at invalid v cc voltages may produce spurious re sults and should not be attempted. ?power gnd ground: the ground reference for the power supply. gnd should be connected to the system ground. ? ground
4 3597h?dflash?02/07 at45db321d [preliminary] 3. block diagram 4. memory array to provide optimal flexibility, the memory array of the at45db321d is divided into three levels of granularity comprising of sectors, blocks, and pages. the ?memory architecture diagram? illustrates the breakdown of each level and details the number of pages per sector and block. all program operations to the dataflash occur on a page by page basis. the erase operations can be performed at the chip, sector, block or page level. figure 4-1. memory architecture diagram flash memory array page (512/52 8 bytes) buffer 2 (512/52 8 bytes) buffer 1 (512/52 8 bytes) i/o i n terface sck cs reset v cc g n d rdy/busy wp so si s ector 0a = 8 pa g e s 4,096/4,224 byte s s ector 0b = 120 pa g e s 61,440/6 3 , 3 60 byte s block = 4,096/4,224 byte s 8 pa g e s s ector 0a s ector 0b pa g e = 512/52 8 byte s pag e 0 pag e 1 pag e 6 pag e 7 pag e 8 pag e 9 page 8 ,190 page 8 ,191 block 0 page 14 page 15 page 16 page 17 pag e 1 8 block 1 s ector architecture block architecture page architecture block 0 block 1 block 62 block 6 3 block 64 block 65 block 1,022 block 1,02 3 block 126 block 127 block 12 8 block 129 s ector 1 s ector 6 3 = 12 8 pa g e s 65,5 3 6/67,5 8 6 byte s block 2 s ector 1 = 12 8 pa g e s 65,5 3 6/67,5 8 4 byte s s ector 62 = 12 8 pa g e s 65,5 3 6/67,5 8 4 byte s s ector 2 = 12 8 pa g e s 65,5 3 6/67,5 8 4 byte s
5 3597h?dflash?02/07 at45db321d [preliminary] 5. device operation the device operation is controlled by instructions from the host processor. the list of instructions and their associated opcodes are contained in table 15-1 on page 28 through table 15-7 on page 31 . a valid instruction starts with the falling edge of cs followed by the appropriate 8-bit opcode and the desired buffer or main memory address location. w hile the cs pin is low, tog- gling the sck pin controls the loading of t he opcode and the desired buffer or main memory address location through the si (serial input) pin. all instructions, addresses, and data are trans- ferred with the most significant bit (msb) first. buffer addressing for the dataflash standard page size (528 bytes) is referenced in the datasheet using the terminology bfa9 - bfa0 to denote the 10 address bits required to desig- nate a byte address within a buffer. main memory addressing is referenced using the terminology pa12 - pa0 and ba9 - ba0, where pa12 - pa0 denotes the 13 address bits required to designate a page address and ba9 - ba0 denotes the 10 address bits required to designate a byte address within the page. for ?power of 2? binary page size (512 bytes) the buffer addressing is referenced in the datasheet using the conventional terminology bfa8 - bfa0 to denote the 9 address bits required to designate a byte address within a buffer. main memory addressing is referenced using the terminology a21 - a0, where a21 - a9 denotes the 13 address bits required to desig- nate a page address and a8 - a0 denotes the 9 address bits required to designate a byte address within a page. 6. read commands by specifying the appropriate opcode, data can be read from the main memory or from either one of the two sram data buffers. the dataflas h supports rapids protocols for mode 0 and mode 3. please refer to the ?detailed bit-level read timing? diagrams in this datasheet for details on the clock cycle sequences for each mode. 6.1 continuous array read (legacy co mmand: e8h): up to 66 mhz by supplying an initial starting address for the main memory array, the continuous array read command can be utilized to sequentially read a continuous stream of data from the device by simply providing a clock signal; no additional addressing information or control signals need to be provided. the dataflash incorporates an internal address counter that will automatically increment on every clock cycle, allowing one continuous read operation without the need of additional address sequences. to perform a cont inuous read from the dataflash standard page size (528 bytes), an opcode of e8h must be clocked into the device followed by three address bytes (which comprise the 24-bit page and byte address sequence) and 4 don?t care bytes. the first 13 bits (pa12 - pa0) of the 23-bit addres s sequence specify which page of the main mem- ory array to read, and the last 10 bits (ba9 - ba0) of the 23-bit address sequence specify the starting byte address within the page. to perform a continuous read from the binary page size (512 bytes), the opcode (e8h) must be clocked into the device followed by three address bytes and 4 don?t care bytes. the first 13 bits (a21 - a9) of the 22-bits sequence specify which page of the main memory array to read, and the last 9 bits (a8 - a0) of the 22-bits address sequence specify the starting byte address within the page. the don?t care bytes that follow the address bytes are needed to initialize the read operation. following the don?t care bytes, additional clock pulses on the sck pin will result in data be ing output on the so (serial output) pin. the cs pin must remain low during the loading of the opcode, the address bytes, the don?t care bytes, and the reading of data. w hen the end of a page in main memory is reached during a
6 3597h?dflash?02/07 at45db321d [preliminary] continuous array read, the device will continue reading at the beginning of the next page with no delays incurred during the page boundary crossover (the crossover from the end of one page to the beginning of the next page). w hen the last bit in the main memory array has been read, the device will continue reading ba ck at the beginning of the firs t page of memory. as with cross- ing over page boundaries, no de lays will be incurred when wrapping around from the end of the array to the beginning of the array. a low-to-high transition on the cs pin will terminate the read operation and tri-stat e the output pin (so). the maximum sck frequency allowable for the continuous array read is defined by the f car1 specification. the continuous array read bypasses both data buffers and leaves the contents of the buffers unchanged. 6.2 continuous array read (high frequ ency mode: 0bh): up to 66 mhz this command can be used with the serial interface to read the main memory array sequentially in high speed mode for any clock frequency up to the maximum specified by f car1 . to perform a continuous read array with the page size set to 528 bytes, the cs must first be asserted then an opcode 0bh must be clocked into the device followed by three address bytes and a dummy byte. the first 13 bits (pa12 - pa0) of the 23-bit address sequence specify which page of the main memory array to read, and the last 10 bits (ba9 - ba0) of the 23-bit address sequence specify the starting byte address within the page. to perform a continuous read with the page size set to 512 bytes, the opcode, 0bh, must be clocked into the device followed by three address bytes (a21 - a0) and a dummy byte. follo wing the dummy byte, additional clock pulses on the sck pin will result in data bei ng output on the so (serial output) pin. the cs pin must remain low during the loading of the opcode, the address bytes, and the read- ing of data. w hen the end of a page in the main memory is reached during a continuous array read, the device will continue reading at the be ginning of the next page with no delays incurred during the page boundary crossover (the crossover from the end of one page to the beginning of the next page). w hen the last bit in the main memory array has been read, the device will con- tinue reading back at the beginning of the fi rst page of memory. as with crossing over page boundaries, no delays will be incurred when wrapping around from the end of the array to the beginning of the array. a low-to -high transition on the cs pin will term inate the r ead operation and tri-state the output pin (so). the maxi mum sck frequency allowable for the continuous array read is defined by the f car1 specification. the continuous array read bypasses both data buffers and leaves the contents of the buffers unchanged. 6.3 continuous array read (low frequen cy mode: 03h): up to 33 mhz this command can be used with the serial interface to read the main memory array sequentially without a dummy byte up to maximum frequencies specified by f car2 . to perform a continuous read array with the page size set to 528 bytes, the cs must first be asserted then an opcode, 03h, must be clocked into the device followed by three address bytes (which comprise the 24-bit page and byte address sequence). the first 13 bits (pa12 - pa0) of the 23-bit address sequence specify which page of the main memory array to read, and the last 10 bits (ba9 - ba0) of the 23-bit address sequence specify the starting byte address within the page. to perform a contin- uous read with the page size set to 512 bytes, the opcode, 03h, must be clocked into the device followed by three address bytes (a21 - a0). follo wing the address bytes, additional clock pulses on the sck pin will result in data bei ng output on the so (serial output) pin. the cs pin must remain low during the loading of the opcode, the address bytes, and the read- ing of data. w hen the end of a page in the main memory is reached during a continuous array read, the device will continue reading at the be ginning of the next page with no delays incurred
7 3597h?dflash?02/07 at45db321d [preliminary] during the page boundary crossover (the crossover from the end of one page to the beginning of the next page). w hen the last bit in the main memory array has been read, the device will con- tinue reading back at the beginning of the fi rst page of memory. as with crossing over page boundaries, no delays will be incurred when wrapping around from the end of the array to the beginning of the array. a low-to -high transition on the cs pin will term inate the r ead operation and tri-state the output pin (so). the continuous array read bypasses both data buffers and leaves the contents of the buffers unchanged. 6.4 main memory page read a main memory page read allows the user to read data directly from any one of the 8,192 pages in the main memory, bypassing both of the data buffers and leaving the contents of the buffers unchanged. to start a page read from the dataflash standard page size (528 bytes), an opcode of d2h must be clocked into the device followed by three address bytes (which comprise the 24-bit page and byte address sequence) and 4 don?t care bytes. the first 13 bits (pa12 - pa0) of the 23-bit address sequence specify the page in main memory to be read, and the last 10 bits (ba9 - ba0) of the 23-bit address sequence specify the starting byte address within that page. to start a page read from the binary page size (512 bytes), the opcode d2h must be clocked into the device followed by three address bytes and 4 don?t care bytes. the first 13 bits (a21 - a9) of the 22-bits sequence specify which page of the main memory array to read, and the last 9 bits (a8 - a0) of the 22-bits address sequence specify the starting byte address within the page. the don?t care bytes that follow the address bytes are sent to initialize the read opera- tion. following the don?t care bytes, additional pulses on sck result in data being output on the so (serial output) pin. the cs pin must remain low during the loading of the opcode, the address bytes, the don?t care bytes, and the reading of data. w hen the end of a page in main memory is reached, the device will c ontinue reading back at the beginning of the same page. a low-to-high transition on the cs pin will terminate the read operation and tri-state the output pin (so). the maximum sck frequency allowable for the main memory page read is defined by the f sck specification. the main memory page read bypasses both data buffers and leaves the contents of the buffers unchanged. 6.5 buffer read the sram data buffers can be accessed independe ntly from the main me mory array, and utiliz- ing the buffer read command allows data to be sequentially read directly from the buffers. four opcodes, d4h or d1h for buffer 1 and d6h or d3h for buffer 2 can be used for the buffer read command. the use of each opc ode depends on the maximum sck frequen cy that will be used to read data from the buffer. the d4h and d6h opcode can be used at any sck frequency up to the maximum specified by f car1 . the d1h and d3h opcode can be used for lower frequency read operations up to the maximum specified by f car2 . to perform a buffer read from the dataflash standard buffer (528 bytes), the opcode must be clocked into the device followed by three address bytes comprised of 14 don?t care bits and 10 buffer address bits (bfa9 - bfa0). to perform a buffer read from the binary buffer (512 bytes), the opcode must be clocked into the device followed by three address bytes com- prised of 15 don?t care bits and 9 buffer addr ess bits (bfa8 - bfa0). following the address bytes, one don?t care byte must be clocked in to initialize the read operation. the cs pin must remain low during the loading of the opcode, the address bytes, the don?t care byte, and the reading of data. w hen the end of a buffer is reached, the device will cont inue reading back at the beginning of the buffer. a low-to-high transition on the cs pin will terminate the read operation and tri-state the output pin (so).
8 3597h?dflash?02/07 at45db321d [preliminary] 7. program and erase commands 7.1 buffer write data can be clocked in from the input pin (si) into either buffer 1 or buffer 2. to load data into the dataflash standard buffer (528 bytes), a 1-byte opcode, 84h for buffer 1 or 87h for buffer 2, must be clocked into the device, followed by thre e address bytes comprised of 14 don?t care bits and 10 buffer address bits (bfa9 - bfa0). the 10 buffer address bits specify the first byte in the buffer to be written. to load data into the binary buffers (512 bytes each), a 1-byte opcode 84h for buffer 1 or 87h for buffer 2, must be clocked into the device, followed by three address bytes comprised of 15 don?t care bits and 9 buffer address bits (bfa8 - bfa0). the 9 buffer address bits specify the first byte in the buffer to be written. after the last address byte has been clocked into the device, data can then be clocked in on s ubsequent clock cycles. if the end of the data buffer is reached, the device will wrap around back to the beginni ng of the buffer. data will con- tinue to be loaded into the buffer until a low-to-high transition is detected on the cs pin. 7.2 buffer to main memory page program with built-in erase data written into either buffer 1 or buffer 2 can be programmed into the main memory. a 1-byte opcode, 83h for buffer 1 or 86h for buffer 2, must be clocked into the device. for the dataflash standard page size (528 bytes), the opcode must be followed by three address bytes consist of 1 don?t care bit, 13 page address bits (pa12 - pa0) that specify the page in the main memory to be written and 10 don?t care bits. to perform a buffer to main memory page program with built-in erase for the binary page size (512 bytes), the opcode 83h for buffer 1 or 86h for buffer 2, must be clocked into the device followed by three address bytes consisting of 2 don?t care bits 13-page address bits (a21 - a9) that specify the page in the main memory to be written and 9 don?t care bits. w hen a low-to-high transition occurs on the cs pin, the part will first erase the selected page in main memory (the erased state is a logic 1) and then program the data stored in the buffer into the specified page in main memory. both the erase and the programming of the page are internally self-timed and should take place in a maximum time of t ep . during this time, the status register and the rdy/busy pin will indicate that the part is busy. 7.3 buffer to main memory page program without built-in erase a previously-erased page within main memory can be programmed with the contents of either buffer 1 or buffer 2. a 1-byte opcode, 88h for buffer 1 or 89h for buffer 2, must be clocked into the device. for the dataflash standard page size (528 bytes), the opcode must be followed by three address bytes consist of 1 don?t care bit, 13 page address bits (pa12 - pa0) that specify the page in the main memory to be written and 10 don?t care bits. to perform a buffer to main memory page program without built-in erase for the binary page size (512 bytes), the opcode 88h for buffer 1 or 89h for buffer 2, must be clocked into the device followed by three address bytes consisting of 2 don?t care bits, 13 page address bits (a21 - a9) that specify the page in the main memory to be written and 9 don?t care bits. w hen a low-to-high transition occurs on the cs pin, the part will program the data stored in the buffer into the specified page in the main mem- ory. it is necessary that the page in main memory that is being programmed has been previously erased using one of the erase commands (page erase or block erase). the programming of the page is internally self-timed and should take place in a maximum time of t p . during this time, the status register and the rdy/busy pin will indicate that the part is busy.
9 3597h?dflash?02/07 at45db321d [preliminary] 7.4 page erase the page erase command can be used to individually erase any page in the main memory array allowing the buffer to main memory page program to be utilized at a later time. to perform a page erase in the dataflash standard page size (528 bytes), an opcode of 81h must be loaded into the device, followed by three address bytes comprised of 1 don?t care bit, 13 page address bits (pa12 - pa0) that specify the page in the main memory to be erased and 10 don?t care bits. to perform a page erase in the binary page size (512 bytes), the opcode 81h must be loaded into the device, followed by three address bytes co nsist of 2 don?t care bits, 13 page address bits (a21 - a9) that specify the page in the main memory to be erased and 9 don?t care bits. w hen a low-to-high transition occurs on the cs pin, the part will erase the selected page (the erased state is a logical 1). the erase operation is internally self-timed and should take place in a maxi- mum time of t pe . during this time, the status register and the rdy/busy pin will indicate that the part is busy. 7.5 block erase a block of eight pages can be erased at one time. this command is useful when large amounts of data has to be written into the device. th is will avoid using mult iple page erase commands. to perform a block erase for the dataflash standard page size (528 bytes), an opcode of 50h must be loaded into the device, followed by three address bytes comprised of 1 don?t care bit, 10 page address bits (pa12 -pa3) and 13 don?t care bits. the 10 page address bits are used to specify which block of eight pages is to be eras ed. to perform a block erase for the binary page size (512 bytes), the opcode 50h must be loaded into the device, followed by three address bytes consisting of 2 don?t care bits, 10 page address bits (a21 - a12) and 12 don?t care bits. the 10 page address bits are used to specify which block of eight pages is to be erased. w hen a low-to-high transition occurs on the cs pin, the part will erase the selected block of eight pages. the erase operation is internally self-timed and should take place in a maximum time of t be . during this time, the status register and the rdy/busy pin will indicate that the part is busy. table 7-1. block erase addressing pa12 / a21 pa11 / a20 pa10/ a19 pa9/ a18 pa8/ a17 pa 7 / a16 pa6 / a15 pa5/ a14 pa4/ a13 pa3/ a12 pa2 / a11 pa1 / a10 pa0/ a9 block 0000000000xxx 0 0000000001xxx 1 0000000010xxx 2 0000000011xxx 3 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1111111100xxx1020 1111111101xxx1021 1111111110xxx1022 1111111111xxx1023
10 3597h?dflash?02/07 at45db321d [preliminary] 7.6 sector erase the sector erase command can be used to individually erase any sector in the main memory. there are 64 sectors and only one sector can be erased at one time. to perform sector 0a or sector 0b erase for the dataflash standard page si ze (528 bytes), an opcode of 7ch must be loaded into the device, followed by three address bytes comprised of 1 don?t care bit, 10 page address bits (pa12 - pa3) and 13 don?t care bi ts. to perform a sector 1-63 erase, the opcode 7ch must be loaded into the device, followed by three address bytes comprised of 1 don?t care bit, 4 page address bits (pa12 - pa9) and 19 don?t care bits. to perform sector 0a or sector 0b erase for the binary page size (512 bytes), an opcode of 7ch must be loaded into the device, followed by three address bytes compris ed of 2 don?t care bit and 10 page address bits (a21 - a12) and 12 don?t care bits. to perform a sector 1-63 erase, the opcode 7ch must be loaded into the device, followed by three addres s bytes comprised of 2 don?t care bits and 4 page address bits (a21 - a18) and 18 don?t care bits. the page address bits are used to spec- ify any valid address location within the sector which is to be erased. w hen a low-to-high transition occurs on the cs pin, the part will erase the sele cted sector. the erase operation is internally self-timed and should take place in a maximum time of t se . during this time, the status register and the rdy/busy pin will indicate that the part is busy. 7.7 chip erase (1) the entire main memory can be erased at one time by using the chip erase command. to execute the chip erase command, a 4-byte command sequence c7h, 94h, 80h and 9ah must be clocked into the device. since the entire memory array is to be erased, no address bytes need to be clocked into the device, and any data clocked in after the opcode will be ignored. after the last bit of the opcode sequence has been clocked in, the cs pin can be deas- serted to start the erase process. the erase operation is internally self-timed and should take place in a time of t ce . during this time, the status register will indicate that the device is busy. the chip erase command w ill not affect sectors that are prot ected or locked down; the contents of those sectors will re main unchanged. only those sectors that are not prot ected or locked down will be erased. table 7-2. sector erase addressing pa12/ a21 pa11/ a20 pa1 0/ a19 pa9/ a18 pa 8/ a17 pa7 / a16 pa6/ a15 pa5/ a14 pa4/ a13 pa 3 / a12 pa2 / a11 pa1/ a10 pa0/ a9 sector 0000000000xxx 0a 0000000001xxx 0b 000001 xxxxxxx 1 000010 xxxxxxx 2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 111100 xxxxxxx 60 111101 xxxxxxx 61 111110 xxxxxxx 62 111111 xxxxxxx 63
11 3597h?dflash?02/07 at45db321d [preliminary] the w p pin can be asserted while the device is eras ing, but protection will not be activated until the internal erase cycle completes. figure 7-1. chip erase note: 1. refer to the errata regarding chip erase on page 54 . 7.8 main memory page program through buffer this operation is a combination of the buffer w rite and buffer to main memory page program with built-in erase operations. data is first clocked into buffer 1 or buffer 2 from the input pin (si) and then programmed into a specified page in the main memory. to perform a main memory page program through buffer for the dataflash standard page size (528 bytes), a 1-byte opcode, 82h for buffer 1 or 85h for buffer 2, must first be clocked into the device, followed by three address bytes. the address bytes are compris ed of 1 don?t care bit, 13 page address bits, (pa12 - pa0) that select the page in the main memory where data is to be written, and 10 buffer address bits (bfa9 - bfa0) that select the first byte in the buffer to be written. to perform a main memory page program through buffer for the binary page size (512 bytes), the opcode 82h for buffer 1 or 85h for buffer 2, must be clocke d into the device followed by three address bytes consisting of 2 don?t care bits, 13 page address bits (a21 - a9) that specify the page in the main memory to be written, and 9 buffer address bits (bfa8 - bfa0) that selects the first byte in the buffer to be written. after all address bytes are clocked in, the part will take data from the input pins and store it in the specified data buffer. if the end of the buffer is reached, the device will wrap around back to the beginning of the buffer. w hen there is a low-to-high transition on the cs pin, the part will first erase the selected page in main memory to all 1s and then program the data stored in the buffer into that memory page. both the erase and the programming of the page are internally self-timed and should take place in a maximum time of t ep . during this time, the status register and the rdy/busy pin will indicate that the part is busy. 8. sector protection two protection methods, hardware and software controlled, are provided for protection against inadvertent or erroneous program and erase cycles. the software controlled method relies on the use of software commands to enable and disable sector protection while the hardware con- trolled method employs the use of the w rite protect ( w p ) pin. the selection of which sectors that are to be protected or unprotected against program and erase operations is specified in the nonvolatile sector protection register. the status of whether or not sector protection has been enabled or disabled by either the software or the hardware controlled methods can be deter- mined by checking the status register. command byte 1 byte 2 byte 3 byte 4 chip erase c7h 94h 80h 9ah opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs each transition represents 8 bits si
12 3597h?dflash?02/07 at45db321d [preliminary] 8.1 software sector protection 8.1.1 enable sector protection command sectors specified for protection in the sector protection register can be protected from program and erase operations by issuing the enable sector protection command. to enable the sector protection using the software controlled method, the cs pin must first be asserted as it would be with any other command. once the cs pin has been asserted, the appropriate 4-byte command sequence must be clocked in via the input pin (si). after the last bit of the command sequence has been clocked in, the cs pin must be deasserted after which the sector protection will be enabled. figure 8-1. enable sector protection 8.1.2 disable sector protection command to disable the sector protection using the software controlled method, the cs pin must first be asserted as it would be with any other command. once the cs pin has been asserted, the appropriate 4-byte sequence for the disable sector protection command must be clocked in via the input pin (si). after the last bit of the command sequence has been clocked in, the cs pin must be deasserted after which the sector protecti on will be disabled. the w p pin must be in the deasserted state; otherwise, the disable sector protec tion command will be ignored. figure 8-2. disable sector protection 8.1.3 various aspects about software controlled protection software controlled protection is useful in applications in which the w p pin is not or cannot be controlled by a host processo r. in such instances, the w p pin may be left floating (the w p pin is internally pulled high) and sector protection can be controlled using the enable sector protection and disable sector protection commands. if the device is power cycled, then the software controlled protection will be disabled. once the device is powered up, the enable sector protecti on command should be reissued if sector pro- tection is desired and if the w p pin is not used. command byte 1 byte 2 byte 3 byte 4 enable sector protection 3dh 2ah 7fh a9h opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs each transition represents 8 b its si command byte 1 byte 2 byte 3 byte 4 disable sector protection 3dh 2ah 7fh 9ah opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs each transition represents 8 b its si
13 3597h?dflash?02/07 at45db321d [preliminary] 9. hardware controlled protection sectors specified for protection in the sector protection register and the sector protection reg- ister itself can be protected from program and erase operations by asserting the w p pin and keeping the pin in its asserted state. the sector protection register and any sector specified for protection cannot be erased or reprogrammed as long as the w p pin is asserted. in order to modify the sector protection register, the w p pin must be deasserted. if the w p pin is perma- nently connected to gnd, then the content of the sector protection register cannot be changed. if the w p pin is deasserted, or permanently connected to v cc , then the content of the sector protection register can be modified. the w p pin will override the software controlled protection method but only for protecting the sectors. for example, if the sectors were not previously protected by the enable sector protec- tion command, then simply asserting the w p pin would enable the sector protection within the maximum specified t w pe time. w hen the w p pin is deasserted; however, the sector protection would no longer be enabled (after the maximum specified t w pd time) as long as the enable sec- tor protection command was not issued while the w p pin was asserted. if the enable sector protection command was issued before or while the w p pin was asserted, then simply deassert- ing the w p pin would not disable the sector protec tion. in this case, the disable sector protection command would need to be issued while the w p pin is deasserted to disable the sec- tor protection. the disable sector protecti on command is also ignored whenever the w p pin is asserted. a noise filter is incorporated to help protect against spurious noise that may inadvertently assert or deassert the w p pin. the table below details the sector protection status for various scenarios of the w p pin, the enable sector protection command, and the disable sector protection command. figure 9-1. w p pin and protection status wp 12 3 table 9-1. w p pin and protection status time period wp pin enable sector protection command disable sector protection command sector protection status sector protection register 1high command not issued previously ? issue command x issue command ? disabled disabled enabled read/ w rite read/ w rite read/ w rite 2 low x x enabled read only 3high command issued during period 1 or 2 ? issue command not issued yet issue command ? enabled disabled enabled read/ w rite read/ w rite read/ w rite
14 3597h?dflash?02/07 at45db321d [preliminary] 9.1 sector protection register the nonvolatile sector protection register specifies which sectors are to be protected or unpro- tected with either the software or hardware controlled protection methods. the sector protection register contains 64 bytes of data, of which byte locations 0 through 63 contain values that specify whether sectors 0 through 63 will be protected or unprotected. the sector protection register is user modifiable and must first be erased before it can be reprogrammed. table 9-3 illustrates the format of the sector protection register.: note: 1. the default value for bytes 0 through 63 when shipped from atmel is 00h. x = don?t care. table 9-2. sector protection register sector number 0 (0a, 0b) 1 to 63 protected see table 9-3 ffh unprotected 00h table 9-3. sector 0 (0a, 0b) 0a 0b bit 3, 2 data value (pages 0-7) (pages 8-127) bit 7, 6 bit 5, 4 bit 1, 0 sectors 0a, 0b unprotected 00 00 xx xx 0xh protect sector 0a (pages 0-7) 11 00 xx xx cxh protect sector 0b (pages 8-127) 00 11 xx xx 3xh protect sectors 0a (pages 0-7), 0b (pages 8-127) (1) 11 11 xx xx fxh
15 3597h?dflash?02/07 at45db321d [preliminary] 9.1.1 erase sector protection register command in order to modify and change the values of the sector protection register, it must first be erased using the erase sector protection register command. to erase the sector protection register, the cs pin must first be asserted as it would be with any other command. once the cs pin has been asserted, the appropriate 4-byte opcode sequence must be clocked into the device via the si pin. the 4-byte opcode sequence must start with 3dh and be followed by 2ah, 7fh, and cfh. after the last bit of the opcode sequence has been clocked in, the cs pin must be deasserted to initiate the internally self-timed erase cycle. the erasing of the sector protection re gister should take place in a time of t pe , during which time the status register will indicate that the device is busy. if the device is powered- down before the completion of the erase cycle, then the contents of the sector protection regis- ter cannot be guaranteed. the sector protection register can be erased with the sector protection enabled or disabled. since the erased state (ffh) of each byte in the sector protection register is used to indicate that a sector is specified for protection, leaving the sector protection enabled during the erasing of the register allows the protection scheme to be more effective in the prevention of accidental programming or erasing of the device. if for some reason an erroneous program or erase com- mand is sent to the device imm ediately after erasing the sector protection register and before the register can be reprogramm ed, then the erroneous progra m or erase command will not be processed because all sectors would be protected. figure 9-2. erase sector protection register command byte 1 byte 2 byte 3 byte 4 erase sector protection register 3dh 2ah 7fh cfh opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs each transition represents 8 b its si
16 3597h?dflash?02/07 at45db321d [preliminary] 9.1.2 program sector protection register command once the sector protection register has been erased, it can be reprogrammed using the pro- gram sector protection register command. to program the sector protection register, the cs pin must first be asserted and the appropri- ate 4-byte opcode sequence must be clocked into the device via the si pin. the 4-byte opcode sequence must start with 3dh and be followed by 2ah, 7fh, and fch. after the last bit of the opcode sequence has been clocked into the device, the data for the contents of the sector pro- tection register must be clocked in. as described in section 9.1 , the sector protection register contains 64 bytes of data, so 64 bytes must be clocked into the device. the first byte of data cor- responds to sector 0, the second byte corresponds to sector 1, and so on with the last byte of data corresponding to sector 63. after the last data byte has been clocked in, the cs pin must be deasserted to initiate the inter- nally self-timed program cycle. the programming of the sector protection register should take place in a time of t p , during which time the stat us register will indicate that the device is busy. if the device is powered-down during the program cycle, then the contents of the sector protection register cannot be guaranteed. if the proper number of data bytes is not clocked in before the cs pin is deasserted, then the protection status of the sectors corresponding to the bytes not clocked in can not be guaranteed. for example, if only the first two bytes are clocked in instead of the complete 62 bytes, then the protection status of the last 62 sectors cannot be guaranteed. furthermore, if more than 64 bytes of data is clocked into the device, then the data will wrap back around to the beginning of the register. for instance, if 65 bytes of data are clocked in, t hen the 65th byte will be stored at byte location 0 of the sector protection register. if a value other than 00h or ffh is clocked into a byte location of the sector protection register, then the protection status of the sector corresponding to that byte location cannot be guaran- teed. for example, if a value of 17h is clocked into byte location 2 of the sector protection register, then the protection status of sector 2 cannot be guaranteed. the sector protection register can be reprogrammed while the sector protection enabled or dis- abled. being able to reprogram the sector protection register with the sector protection enabled allows the user to temporarily disable the sector protection to an individual sector rather than dis- abling sector protection completely. the program sector protection register command utilizes the internal sram buffer 1 for pro- cessing. therefore, the contents of the buffer 1 will be altered from its previous state when this command is issued. figure 9-3. program sector protection register command byte 1 byte 2 byte 3 byte 4 program sector protection register 3dh 2ah 7fh fch data byte n opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 data byte n + 1 data byte n + 63 cs each transition represents 8 bits si
17 3597h?dflash?02/07 at45db321d [preliminary] 9.1.3 read sector protection register command to read the sector protection register, the cs pin must first be asserted. once the cs pin has been asserted, an opcode of 32h and 3 dummy bytes must be clocked in via the si pin. after the last bit of the opcode and dummy bytes have been clocked in, any additional clock pulses on the sck pins will result in data for the content of the sect or protection register being output on the so pin. the first byte corresponds to sector 0 ( 0a, 0b), the second byte corresponds to sector 1 and the last byte (byte 64) corresponds to sector 63. once the last byte of the sector protection register has been clo cked out, any additional clock pulses will result in unde fined data being output on the so pin. the cs must be deasserted to terminate the read sector protection reg- ister operation and put the output into a high-impedance state. note: xx = dummy byte figure 9-4. read sector protection register 9.1.4 various aspects about the sector protection register the sector protection register is subject to a limit of 10,000 erase/program cycles. users are encouraged to carefully evaluate the number of times the sector protection register will be modified during the course of the applications? life cycle. if the application requires that the sec- tor protection register be modified more than the specified limit of 10,000 cycles because the application needs to temporarily unprotect individual sectors (sector protection remains enabled while the sector protection regi ster is reprogrammed), then the application will need to limit this practice. instead, a combination of temporarily unprotecting individual sectors along with dis- abling sector protection completely will need to be implement ed by the applicatio n to ensure that the limit of 10,000 cycles is not exceeded. command byte 1 byte 2 byte 3 byte 4 read sector protecti on register 32h xxh xxh xxh opcode x x x data byte n data byte n + 1 cs data byte n + 63 si so each transition represents 8 bits
18 3597h?dflash?02/07 at45db321d [preliminary] 10. security features 10.1 sector lockdown the device incorporates a sector lockdown mechanism that allows each individual sector to be permanently locked so that it becomes read only. this is useful for applications that require the ability to permanently protect a nu mber of sectors against malicious attempts at altering program code or security information. once a sector is locked down, it can never be erased or pro- grammed, and it can never be unlocked. to issue the sector lockdown command, the cs pin must first be asserted as it would be for any other command. once the cs pin has been asserted, the appropriate 4-byte opcode sequence must be clocked into the device in the correct order. the 4-byte opcode sequence must start with 3dh and be followed by 2ah, 7fh, and 30h. after the last byte of the command sequence has been clocked in, then three address bytes specifying any address within the sec- tor to be locked down must be clocked into the device. after the last address bit has been clocked in, the cs pin must then be deasserted to initiate the internally self-timed lockdown sequence. the lockdown sequence should take place in a maximum time of t p , during which time the status register will indicate that the device is busy. if the device is powered-down before the comple- tion of the lockdown sequence, then the lockdown status of the sector cannot be guaranteed. in this case, it is recommended that the user read the sector lockdown register to determine the status of the appropriate sector lockdown bits or bytes and reissue the sector lockdown com- mand if necessary. figure 10-1. sector lockdown command byte 1 byte 2 byte 3 byte 4 sector lockdown 3dh 2ah 7fh 30h opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs address bytes address bytes address bytes each transition represents 8 b its si
19 3597h?dflash?02/07 at45db321d [preliminary] 10.1.1 sector lockdown register sector lockdown register is a nonvolatile regist er that contains 64 bytes of data, as shown below: 10.1.2 reading the sector lockdown register the sector lockdown register can be read to determine which sectors in the memory array are permanently locked down. to read the sector lockdown register, the cs pin must first be asserted. once the cs pin has been asserted, an opcode of 35h and 3 dummy bytes must be clocked into the device via the si pin. after the last bit of the opcode and dummy bytes have been clocked in, the data for the contents of the sector lockdown register will be clocked out on the so pin. the first byte corresponds to sector 0 (0a, 0b) the second byte corresponds to sector 1 and the last byte (byte 16) corresponds to sector 15. after the last byte of the sector lockdown register has been read, additional pulses on the sck pin will simply result in unde- fined data being output on the so pin. deasserting the cs pin will terminate the read sector lockdown regist er operation and put the so pin into a high-impedance state. table 10-2 details the values read from the sector lockdown register. figure 10-2. read sector lockdown register sector number 0 (0a, 0b) 1 to 63 locked see below ffh unlocked 00h table 10-1. sector 0 (0a, 0b) 0a 0b bit 3, 2 data value (pages 0-7) (pages 8-127) bit 7, 6 bit 5, 4 bit 1, 0 sectors 0a, 0b unlocked 00 00 00 00 00h sector 0a locked (pages 0-7) 11 00 00 00 c0h sector 0b locked (pages 8-127) 00 11 00 00 30h sectors 0a, 0b locked (pages 0-127) 11 11 00 00 f0h table 10-2. sector lockdown register command byte 1 byte 2 byte 3 byte 4 read sector lockdown register 35h xxh xxh xxh note: xx = dummy byte opcode x x x data byte n data byte n + 1 cs data byte n + 63 si so each transition represents 8 bits
20 3597h?dflash?02/07 at45db321d [preliminary] 10.2 security register the device contains a specialized security register that can be used for purposes such as unique device serialization or locked key storage. the register is comprised of a total of 128 bytes that is divided into two portions. the first 64 bytes (byte locations 0 through 63) of the security register are allocated as a one-time user programmable space. once these 64 bytes have been programmed, they cannot be reprogrammed. the remaining 64 bytes of the register (byte locations 64 through 127) are factory programmed by atmel and will contain a unique value for each device. the factory programmed data is fixed and cannot be changed. 10.2.1 programming the security register the user programmable portion of the security register does not need to be erased before it is programmed. to program the security register, the cs pin must first be asserted and the appropriate 4-byte opcode sequence must be clocked into the devic e in the correct order. the 4-byte opcode sequence must start with 9bh and be followed by 00h, 00h, and 00h. after the last bit of the opcode sequence has been clocked into the device, the data for the contents of the 64-byte user programmable portion of the security register must be clocked in. after the last data byte has been clocked in, the cs pin must be deasserted to initiate the inter- nally self-timed program cycle. the programming of the security register should take place in a time of t p , during which time the status register will indi cate that the device is busy. if the device is powered-down during the program cycle, then the contents of the 64-byte user programmable portion of the security register cannot be guaranteed. if the full 64 bytes of data is not clocked in before the cs pin is deasserted, then the values of the byte locations not clocked in cannot be guaranteed. for example, if only the first two bytes are clocked in instead of the complete 64 bytes, then the remaining 62 bytes of the user pro- grammable portion of the security register cannot be guaranteed. furthermore, if more than 64 bytes of data is clocked into the device, then the data will wrap back around to the beginning of the register. for instance, if 65 bytes of data are clocked in, t hen the 65th byte will be stored at byte location 0 of the security register. the user programmable portion of the security register can only be programmed one time. therefore, it is not possible to only program the first two bytes of the register and then pro- gram the remaining 62 bytes at a later time. the program security register command utilizes the internal sram buffer 1 for processing. therefore, the contents of the buffer 1 will be alte red from its previous state when this command is issued. figure 10-3. program security register table 10-3. security register security register byte number 01 ? ? ? 62 63 64 65 ? ? ? 126 127 data type one-time user programmable factory programmed by atmel data byte n opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 data byte n + 1 data byte n + x cs each transition represents 8 b its si
21 3597h?dflash?02/07 at45db321d [preliminary] 10.2.2 reading the security register the security register can be read by first asserting the cs pin and then clocking in an opcode of 77h followed by three dummy bytes. after the last don't care bit has been clocked in, the con- tent of the security register can be clocked out on the so pins. after the last byte of the security register has been read , additional pulses on the sck pi n will simply result in undefined data being output on the so pins. deasserting the cs pin will terminate the read security register operation and put the so pins into a high-impedance state. figure 10-4. read security register 11. additional commands 11.1 main memory page to buffer transfer a page of data can be transferred from the main memory to either buffer 1 or buffer 2. to start the operation for the dataflash standard page size (528 bytes), a 1-byte opcode, 53h for buffer 1 and 55h for buffer 2, must be clocked into the device, followed by three address bytes com- prised of 1 don?t care bit, 13-page address bit (pa12 - pa0), which specify the page in main memory that is to be transferred, and 10 don?t care bits. to perform a main memory page to buffer transfer for the binary page size (512 bytes), the opcode 53h for buffer 1 or 55h for buffer 2, must be clocked into the device followed by three address bytes consisting of 2 don?t care bits, 13-page address bits (a21 - a9) which specify the page in the main memory that is to be transferred, and 9 don?t care bits. the cs pin must be low while toggling the sck pin to load the opcode and the address bytes from the input pin (si). the transfer of the page of data from the main memory to the buffer will begin when the cs pin transitions from a low to a high state. dur- ing the transfer of a page of data (t xfr ), the status register can be read or the rdy/busy can be monitored to determine whether the transfer has been completed. opcode x x x data byte n data byte n + 1 cs data byte n + x each transition represents 8 b its si so
22 3597h?dflash?02/07 at45db321d [preliminary] 11.2 main memory page to buffer compare a page of data in the main memory can be compared to the data in buffer 1 or buffer 2. to ini- tiate the operation for dataflash standard page size, a 1-byte opcode, 60h for buffer 1 and 61h for buffer 2, must be clocked into the device, followed by three address bytes consisting of 1 don?t care bit, 13-page address bits (pa12 - pa0) that specify the page in the main memory that is to be compared to the buffer, and 10 don?t care bits. to start a main memory page to buffer compare for a binary page size, the opcode 60h for buffer 1 or 61h for buffer 2, must be clocked into the device followed by three address bytes consisting of 2 don?t care bits, 13 page address bits (a21 - a9) that specify the page in the main memory that is to be compared to the buffer, and 9 don?t care bits. the cs pin must be low while toggling the sck pin to load the opcode and the address bytes from the input pin (si). on the low-to-high transition of the cs pin, the data bytes in the selected main memory page will be compared with the data bytes in buffer 1 or buffer 2. during this time (t comp ), the status register and the rdy/busy pin will indicate that the part is busy. on completion of the compare operation, bit 6 of the status register is updated with the result of the compare. 11.3 auto page rewrite this mode is only needed if multiple bytes within a page or multiple pages of data are modified in a random fashion within a sector. this mode is a combination of two operations: main memory page to buffer transfer and buffer to main memory page program with built-in erase. a page of data is first transferred from the main memory to buffer 1 or buffer 2, and then the same data (from buffer 1 or buffer 2) is programmed back into its original page of main memory. to start the rewrite operation for the dataflash standard page size (528 bytes), a 1-byte opcode, 58h for buffer 1 or 59h for buffer 2, must be clocked into the device, followed by three address bytes comprised of 1 don?t care bit, 13-page address bits (pa12-pa0) that specify the page in main memory to be rewritten and 10 don?t care bits. to initiate an auto page rewrite for a binary page size (512 bytes), the opcode 58h for buffer 1 or 59h for buffer 2, must be clocked into the device followed by three address bytes consisting of 2 don?t care bits, 13 page address bits (a21 - a9) that specify the page in the main memory that is to be written and 9 don?t care bits. w hen a low- to-high transition occurs on the cs pin, the part will first transfer data from the page in main memory to a buffer and then program the data from the buffer back into same page of main memory. the operation is internally self-timed and should take place in a maximum time of t ep . during this time, the status register and the rdy/busy pin will indicate that the part is busy. if a sector is programmed or reprogrammed sequentially page by page, then the programming algorithm shown in figure 25-1 ( page 45 ) is recommended. otherwise , if multiple bytes in a page or several pages are programmed randomly in a sector, then the programming algorithm shown in figure 25-2 ( page 46 ) is recommended. each page within a sector must be updated/rewritten at least once within every 10,000 cumulative page erase/program operations in that sector.
23 3597h?dflash?02/07 at45db321d [preliminary] 11.4 status register read the status register can be used to determine the device?s ready/busy status, page size, a main memory page to buffer compare operation result, the sector protection status or the device density. the status register can be read at any time, including during an internally self-timed program or erase operation. to read the status register, the cs pin must be asserted and the opcode of d7h must be loaded into the device. after the opcode is clocked in, the 1-byte status register will be clocked out on the output pin (so) , starting with the next clock cycle. the data in the status register, starting wi th the msb (bit 7), will be clock ed out on the so pi n during the next eight clock cycles. after the one byte of the st atus register has been clocked out, the sequence will repeat itself (as long as cs remains low and sck is being toggled). the data in the status register is constantly updated, so each repeating sequence will output new data. ready/busy status is indicated using bit 7 of the st atus register. if bit 7 is a 1, then the device is not busy and is ready to accept the next command. if bit 7 is a 0, then the device is in a busy state. since the data in the status register is constantly updated, the user must toggle sck pin to check the ready/busy status. there are several operations that can cause the device to be in a busy state: main memory page to buffer transfer, main memory page to buffer compare, buffer to main memory page program, main memory page program through buffer, page erase, block erase, sector erase, chip erase and auto page rewrite. the result of the most recent main memory page to buffer compare operation is indicated using bit 6 of the status register. if bit 6 is a 0, then the data in the main memory page matches the data in the buffer. if bit 6 is a 1, then at least one bit of the data in the main memory page does not match the data in the buffer. bit 1 in the status register is used to provide information to the user whether or not the sector protection has been enabled or disabled, either by software-controlled method or hardware-con- trolled method. a logic 1 indicates that sector protection has been enabled and logic 0 indicates that sector protection has been disabled. bit 0 in the status register indicates whether the page size of the main memory array is config- ured for ?power of 2? binary page size (512 by tes) or dataflash standard page size (528 bytes). if bit 0 is a 1, then the page size is set to 512 bytes. if bit 0 is a 0, then the page size is set to 528 bytes. the device density is indicated using bits 5, 4, 3, and 2 of the status register. for the at45db321d, the four bits are 1101 the decimal va lue of these four binary bits does not equate to the device density; the four bits represent a combinational code relating to differing densities of dataflash devices. the device density is not the same as the density code indicated in the jedec device id information. the device densit y is provided only for backward compatibility. table 11-1. status register format bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rdy/busy comp 1 1 0 1 protect page size
24 3597h?dflash?02/07 at45db321d [preliminary] 12. deep power-down after initial power-up, the device will default in standby mode. the deep po wer-down command allows the device to enter into the lowest power consumption mode. to enter the deep power- down mode, the cs pin must first be asserted. once the cs pin has been asserted, an opcode of b9h command must be clocked in via input pin (si). after the last bit of the command has been clocked in, the cs pin must be de-asserted to initiate the deep power-down operation. after the cs pin is de-asserted, the will device ente r the deep power-down mode within the maximum t edpd time. once the device has entered the deep power-down mode, all instructions are ignored except for the resume from deep power-down command. figure 12-1. deep power-down 12.1 resume from deep power-down the resume from deep power-down command takes the device out of the deep power-down mode and returns it to the normal standby mode. to resume from deep power-down mode, the cs pin must first be asserted and an opcode of abh command must be clocked in via input pin (si). after the last bit of the command has been clocked in, the cs pin must be de-asserted to terminate the deep power-down mode. after the cs pin is de-asserted, the device will return to the normal standby mode within the maximum t rdpd time. the cs pin must remain high during the t rdpd time before the device can receive any commands. after resuming form deep power- down, the device w ill return to the nor mal standby mode. figure 12-2. resume from deep power-down command opcode deep power-down b9h opcode cs each transition represents 8 b its si command opcode resume from deep power-down abh opcode cs each transition represents 8 b its si
25 3597h?dflash?02/07 at45db321d [preliminary] 13. ?power of 2? binary page size option ?power of 2? binary page size configuration regi ster is a user-programmable nonvolatile regis- ter that allows the page size of the main memory to be configured for binary page size (512 bytes) or dataflash standard page size (528 bytes). the ?power of 2? page size is a one-time programmable (otp) register and once the device is configured for ?power of 2? page size, it cannot be reconfigured again. the devices are initially shipped with the page size set to 528 bytes. 13.1 programming the c onfiguration register to program the configuration register for ?power of 2? binary page size, the cs pin must first be asserted as it would be with any other command. once the cs pin has been asserted, the appropriate 4-byte opcode sequence must be clocked into the device in the correct order. the 4-byte opcode sequence must start with 3dh and be followed by 2ah, 80h, and a6h. after the last bit of the opcode sequence has been clocked in, the cs pin must be deasserted to initiate the internally self-timed prog ram cycle. the programming of th e configuration register should take place in a time of t p , during which time the status regist er will indicate that the device is busy. the device must be power cycled after the completion of the program cycle to set the ?power of 2? page size. if the device is powered-down before the completion of the program cycle, then setting the configuration register cannot be guaranteed. however, the user should check bit 0 of the status register to see w hether the page size was configured for binary page size. if not, the command can be re-issued again. figure 13-1. erase sector protection register 14. manufacturer an d device id read identification information can be read from the dev ice to enable systems to electronically query and identify the device while it is in system. the identification method and the command opcode comply with the jedec standard for ?manufacturer and device id read methodology for spi compatible serial interface memory devices?. the type of information that can be read from the device includes the jedec defined manufacturer id, the vendor specific device id, and the ven- dor specific extended device information. to read the identification information, the cs pin must first be asserted and the opcode of 9fh must be clocked into the device. after the opc ode has been clocked in, the device will begin out- putting the identification data on the so pin during the subsequent cloc k cycles. the first byte that will be output will be the manufacturer id followed by two bytes of device id information. the fourth byte ou tput will be the extended device informat ion string length, which will be 00h indicating that no extended device information follows. as indi cated in the jedec standard, reading the extended device information string length and any subsequent data is optional. command byte 1 byte 2 byte 3 byte 4 power of two page size 3dh 2ah 80h a6h opcode byte 1 opcode byte 2 opcode byte 3 opcode byte 4 cs each transition represents 8 b its si
26 3597h?dflash?02/07 at45db321d [preliminary] deasserting the cs pin will terminate the manufacturer a nd device id read operation and put the so pin into a high-impedance state. the cs pin can be deasserted at any time and does not require that a full byte of data be read. 14.1 manufacturer and device id information note: based on jedec publication 106 (jep106), ma nufacturer id data can be comprised of any number of bytes. some manufacturers may have manufacturer id codes that are two, three or even four byte s long with the first byte(s) in the sequence being 7fh. a system sh ould detect code 7fh as a ?continuation code? and continue to read manufacturer id bytes. the first non-7fh byte w ould signify the last byte of manufacturer id data. for atmel (and some other manufacturers), the manufacturer id data is comprised of only one byte. 14.1.1 byte 1 ? manufacturer id hex value jedec assigned code bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 1fh 0 0 0 1 1 1 1 1 manufacturer id 1fh = atmel 14.1.2 byte 2 ? device id (part 1) hex value family code density code bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 family code 001 = dataflash 27h 0 0 1 0 0 1 1 1 density code 00111 = 32-mbit 14.1.3 byte 3 ? device id (part 2) hex value mlc code product version code bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mlc code 000 = 1-bit/cell technology 00h 0 0 0 0 0 0 0 1 product version 00001 = second version 14.1.4 byte 4 ? extended device information string length hex value byte count bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 00h 0 0 0 0 0 0 0 0 byte count 00h = 0 bytes of information 9fh man u fact u rer id byte 1 de v ice id byte 2 de v ice id byte 3 this information w o u ld only b e o u tp u t if the extended de v ice information string length v al u e w as something other than 00h. extended de v ice information string length extended de v ice information byte x extended de v ice information byte x + 1 cs 1fh 27h 00h 01h data data si so opcode each transition represents 8 b its
27 3597h?dflash?02/07 at45db321d [preliminary] 14.2 operation m ode summary the commands described previously can be grouped into four different categories to better describe which commands can be executed at what times. group a commands consist of: 1. main memory page read 2. continuous array read 3. read sector protection register 4. read sector lockdown register 5. read security register group b commands consist of: 1. page erase 2. block erase 3. sector erase 4. chip erase 5. main memory page to buffer 1 (or 2) transfer 6. main memory page to buffer 1 (or 2) compare 7. buffer 1 (or 2) to main memory page program with built-in erase 8. buffer 1 (or 2) to main memory page program without built-in erase 9. main memory page program through buffer 1 (or 2) 10. auto page rewrite group c commands consist of: 1. buffer 1 (or 2) read 2. buffer 1 (or 2) w rite 3. status register read 4. manufacturer and device id read group d commands consist of: 1. erase sector protection register 2. program sector protection register 3. sector lockdown 4. program security register if a group a command is in progress (not fully completed), then another command in group a, b, c, or d should not be started. however, during the internally self-timed portion of group b commands, any command in group c can be executed. the group b commands using buffer 1 should use group c commands using buffer 2 and vi ce versa. finally, during the internally self- timed portion of a group d command, only the status register read command should be executed.
28 3597h?dflash?02/07 at45db321d [preliminary] 15. command tables table 15-1. read commands command opcode main memory page read d2h continuous array read (legacy command) e8h continuous array read (low frequency) 03h continuous array read (high frequency) 0bh buffer 1 read (low frequency) d1h buffer 2 read (low frequency) d3h buffer 1 read d4h buffer 2 read d6h table 15-2. program and erase commands command opcode buffer 1 w rite 84h buffer 2 w rite 87h buffer 1 to main memory page program with built-in erase 83h buffer 2 to main memory page program with built-in erase 86h buffer 1 to main memory page program without built-in erase 88h buffer 2 to main memory page program without built-in erase 89h page erase 81h block erase 50h sector erase 7ch chip erase c7h, 94h, 80h, 9ah main memory page program through buffer 1 82h main memory page program through buffer 2 85h
29 3597h?dflash?02/07 at45db321d [preliminary] note: 1. these legacy commands are not recommended for new designs. table 15-3. protection and security commands command opcode enable sector protection 3dh + 2ah + 7fh + a9h disable sector protection 3dh + 2ah + 7fh + 9ah erase sector protection register 3dh + 2ah + 7fh + cfh program sector protection register 3dh + 2ah + 7fh + fch read sector protection register 32h sector lockdown 3dh + 2ah + 7fh + 30h read sector lockdown register 35h program security register 9bh + 00h + 00h + 00h read security register 77h table 15-4. additional commands command opcode main memory page to buffer 1 transfer 53h main memory page to buffer 2 transfer 55h main memory page to buffer 1 compare 60h main memory page to buffer 2 compare 61h auto page rewrite through buffer 1 58h auto page rewrite through buffer 2 59h deep power-down b9h resume from deep power-down abh status register read d7h manufacturer and device id read 9fh table 15-5. legacy commands (1) command opcode buffer 1 read 54h buffer 2 read 56h main memory page read 52h continuous array read 68h status register read 57h
30 3597h?dflash?02/07 at45db321d [preliminary] notes: x = don?t care table 15-6. detailed bit-level addressing sequence for binary page size (512 bytes) page size = 512 bytes address byte address byte address byte additional don?t care bytes opcode opcode reserved reserved a21 a20 a19 a18 a17 a16 a15 a14 a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0 03h 0000001 1 xx aaaaa a aaaaaaa a aaaaaaa a n/a 0bh 0000101 1 xx aaaaa a aaaaaaa a aaaaaaa a 1 50h 0101000 0 xx aaaaa a aaaax x x x x x xxxxx x n/a 53h 0101001 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 55h 0101010 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 58h 0101100 0 xx aaaaa a aaaaaaa x x x xxxxx x n/a 59h 0101100 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 60h 0110000 0 xx aaaaa a aaaaaaa x x x xxxxx x n/a 61h 0110000 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 77h 0111011 1 xxx xxxx x xxxxxxx x xxxxxxx x n/a 7ch 0111110 0 xx aaaax x x x xxxxx x xxxxxxx x n/a 81h 1000000 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 82h 1000001 0 xx aaaaa a aaaaaaa a aaaaaaa a n/a 83h 1000001 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 84h 1000010 0 xxx xxxx x xxxxxxxaa aaaaaa a n/a 85h 1000010 1 xx aaaaa a aaaaaaa a aaaaaaa a n/a 86h 1000011 0 xx aaaaa a aaaaaaa x x x xxxxx x n/a 87h 1000011 1 xxx xxxx x xxxxxxxaa aaaaaa a n/a 88h 1000100 0 xx aaaaa a aaaaaaa x x x xxxxx x n/a 89h 1000100 1 xx aaaaa a aaaaaaa x x x xxxxx x n/a 9fh 1001111 1 n/a n/a n/a n/a b9h 1011100 1 n/a n/a n/a n/a abh 1010101 1 n/a n/a n/a n/a d1h 1101000 1 xxx xxxx x xxxxxxxaa aaaaaa a n/a d2h 1101001 0 xx aaaaa a aaaaaaa a aaaaaaa a 4 d3h 1101001 1 xxx xxxx x xxxxxxxaa aaaaaa a n/a d4h 1101010 0 xxx xxxx x xxxxxxxaa aaaaaa a 1 d6h 1101011 0 xxx xxxx x xxxxxxxaa aaaaaa a 1 d7h 1101011 1 n/a n/a n/a n/a e8h 1110100 0 xx aaaaa a aaaaaaa a aaaaaaa a 4
31 3597h?dflash?02/07 at45db321d [preliminary] notes: p = page address bit b = byte/buffer address bit x = don?t care table 15-7. detailed bit-level addressing sequence for dataflash standard page size (528 bytes) page size = 528 bytes address byte address byte address byte additional don?t care bytes opcode opcode reserved pa12 pa11 pa10 pa9 pa8 pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 ba9 ba8 ba7 ba6 ba5 ba4 ba3 ba2 ba1 ba0 03h 0 0 0 0 0 0 1 1 xpppppp p ppppppb b bbbbbbb b n/a 0bh 0 0 0 0 1 0 1 1 xpppppp p ppppppb b bbbbbbb b 1 50h 0101000 0 xppppppppppxxxx x xxxxxxx x n/a 53h 0 1 0 1 0 0 1 1 xpppppp p ppppppx x x x x x x x x x n/a 55h 0 1 0 1 0 1 0 1 xpppppp p ppppppx x x x x x x x x x n/a 58h 0 1 0 1 1 0 0 0 xpppppp p ppppppx x x x x x x x x x n/a 59h 0 1 0 1 1 0 0 1 xpppppp p ppppppx x x x x x x x x x n/a 60h 0 1 1 0 0 0 0 0 xpppppp p ppppppx x x x x x x x x x n/a 61h 0 1 1 0 0 0 0 1 xpppppp p ppppppx x x x x x x x x x n/a 77h 0111011 1 xxxxxxx x xxxxxxx x xxxxxxx x n/a 7ch 0111110 0 xppppxx x xxxxxxx x xxxxxxx x n/a 81h 1 0 0 0 0 0 0 1 xpppppp p ppppppx x x x x x x x x x n/a 82h 1 0 0 0 0 0 1 0 xpppppp p ppppppb b bbbbbbb b n/a 83h 1 0 0 0 0 0 1 1 xpppppp p ppppppx x x x x x x x x x n/a 84h 1000010 0 xxxxxxx x xxxxxxbbbbbbbbb b n/a 85h 1 0 0 0 0 1 0 1 xpppppp p ppppppb b bbbbbbb b n/a 86h 1 0 0 0 0 1 1 0 xpppppp p ppppppx x x x x x x x x x n/a 87h 1000011 1 xxxxxxx x xxxxxxbbbbbbbbb b n/a 88h 1 0 0 0 1 0 0 0 xpppppp p ppppppx x x x x x x x x x n/a 89h 1 0 0 0 1 0 0 1 xpppppp p ppppppx x x x x x x x x x n/a 9fh 1001111 1 n/a n/a n/a n/a b9h 1011100 1 n/a n/a n/a n/a abh 1010101 1 n/a n/a n/a n/a d1h 1101000 1 xxxxxxx x xxxxxxbbbbbbbbb b n/a d2h 1 1 0 1 0 0 1 0 xpppppp p ppppppb b bbbbbbb b 4 d3h 1101000 1 xxxxxxx x xxxxxxbbbbbbbbb b n/a d4h 1101010 0 xxxxxxx x xxxxxxbbbbbbbbb b 1 d6h 1101011 0 xxxxxxx x xxxxxxbbbbbbbbb b 1 d7h 1101011 1 n/a n/a n/a n/a e8h 1 1 1 0 1 0 0 0 xpppppp p ppppppb b bbbbbbb b 4
32 3597h?dflash?02/07 at45db321d [preliminary] 16. power-on/reset state w hen power is first applied to the device, or when recovering from a reset condition, the device will default to mode 3. in additi on, the output pin (so) will be in a high impedance state, and a high-to-low transition on the cs pin will be required to start a va lid instruction. the mode (mode 3 or mode 0) will be automatically selected on every falling edge of cs by sampling the inactive clock state. 16.1 initial power-up/re set timing restrictions at power up, the device must not be selected until the supply voltage reaches the v cc (min.) and further delay of t vcsl . during power-up, the internal power-on reset circuitry keeps the device in reset mode until the v cc rises above the power-on reset threshold value (v por ). at this time, all operations are disabled and the device does not respond to any commands. after power up is applied and the v cc is at the minimum operating voltage v cc (min.), the t vcsl delay is required before the device can be selected in order to perform a read operation. similarly, the t pu w delay is required after the v cc rises above the power-on reset threshold value (v por ) before the device can perform a write (program or erase) operation. after initial power-up, the device will de fault in standby mode. 17. system considerations the rapids serial interface is controlled by the clock sck, serial input si and chip select cs pins. these signals must rise and fall monotonica lly and be free from noise. excessive noise or ringing on these pins can be mi sinterpreted as multiple edges and cause improper operation of the device. the pc board traces must be kept to a minimum distance or appropriately termi- nated to ensure proper operation. if necessary, decoupling capacitors can be added on these pins to provide filtering against noise glitches. as system complexity continues to increase, voltage regulation is becoming more important. a key element of any voltage regulation scheme is its current sourcing capability. like all flash memories, the peak current for dataflash occur during the programming and erase operation. the regulator needs to supply this peak current requirement. an under specified regulator can cause current starvation. besides increasing sy stem noise, current starvation during program- ming or erase can lead to improper operation and possible data corruption. symbol parameter min typ max units t vcsl v cc (min.) to chip select low 50 s t pu w power-up device delay before w rite allowed 20 ms v por power-on reset voltage 1.5 2.5 v
33 3597h?dflash?02/07 at45db321d [preliminary] 18. electrical specifications notes: 1. i cc1 during a buffer read is 20 ma maximum @ 20 mhz. 2. all inputs are 5 volts tolerant. table 18-1. absolute maximum ratings* temperature under bias .... ........... ............ ..... -55 c to +125 c *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent dam- age to the device. this is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. storage temperature ..................................... -65 c to +150 c all input voltages (including nc pins) with respect to ground ...................................-0.6v to +6.25v all output voltages with respect to ground .............................-0.6v to v cc + 0.6v table 18-2. dc and ac operating range at45db321d operating temperature (case) ind. -40 c to 85 c v cc power supply 2.7v to 3.6v table 18-3. dc characteristics symbol parameter condition min typ max units i dp deep power-down current cs , reset , w p = v ih , all inputs at cmos levels 510a i sb standby current cs , reset , w p = v ih , all inputs at cmos levels 25 50 a i cc1 (1) active current, read operation f = 20 mhz; i out = 0 ma; v cc = 3.6v 710ma f = 33 mhz; i out = 0 ma; v cc = 3.6v 812ma f = 50 mhz; i out = 0 ma; v cc = 3.6v 10 14 ma f = 66 mhz; i out = 0 ma; v cc = 3.6v 11 15 ma i cc2 active current, program/erase operation v cc = 3.6v 12 17 ma i li input load current v in = cmos levels 1 a i lo output leakage current v i/o = cmos levels 1 a v il input low voltage v cc x 0.3 v v ih input high voltage v cc x 0.7 v v ol output low voltage i ol = 1.6 ma; v cc = 2.7v 0.4 v v oh output high voltage i oh = -100 a v cc - 0.2v v
34 3597h?dflash?02/07 at45db321d [preliminary] table 18-4. ac characteristics ? rapids/serial interface symbol parameter at45db321d min typ max units f sck sck frequency 66 mhz f car1 sck frequency for continuous array read 66 mhz f car2 sck frequency for continuous array read (low frequency) 33 mhz t w h sck high time 6.8 ns t w l sck low time 6.8 ns t sckr (1) sck rise time, peak-to-peak (slew rate) 0.1 v/ns t sckf (1) sck fall time, peak-to-peak (slew rate) 0.1 v/ns t cs minimum cs high time 50 ns t css cs setup time 5 ns t csh cs hold time 5 ns t csb cs high to rdy/busy low 100 ns t su data in setup time 2 ns t h data in hold time 3 ns t ho output hold time 0 ns t dis output disable time 6 ns t v output valid 6ns t w pe w p low to protection enabled 1 s t w pd w p high to protection disabled 1 s t edpd cs high to deep power-down mode 3 s t rdpd cs high to standby mode 30 s t xfr page to buffer transfer time 400 s t comp page to buffer compare time 400 s t ep page erase and programming time (512/528 bytes) 17 40 ms t p page programming time (512/528 bytes) 3 6 ms t pe page erase time (512/528 bytes) 15 35 ms t be block erase time (4,096/4,224 bytes) 45 100 ms t ce chip erase time tbd tbd s t se sector erase time (262,144/270,336 bytes) 1.6 5 s t rst reset pulse w idth 10 s t rec reset recovery time 1 s
35 3597h?dflash?02/07 at45db321d [preliminary] 19. input test waveform s and measurement levels t r , t f < 2 ns (10% to 90%) 20. output test load 21. ac waveforms six different timing waveforms are shown on page 36 . w aveform 1 shows the sck signal being low when cs makes a high-to-low transition, and waveform 2 shows the sck signal being high when cs makes a high-to-low transition. in both cases, output so becomes valid while the sck signal is still low (sck lo w time is specified as t w l ). timing waveforms 1 and 2 conform to rapids serial interface but for frequencies up to 66 mhz. w aveforms 1 and 2 are compatible with spi mode 0 and spi mode 3, respectively. w aveform 3 and waveform 4 illustrate general timing diagram fo r rapids serial interface. these are similar to waveform 1 and waveform 2, except that output so is not restricted to become valid during the t w l period. these timing waveforms are valid over the full frequency range (max- imum frequency = 66 mhz) of the rapids serial case. ac driving levels ac measurement level 0.45v 1.5v 2.4v device under test 30 pf
36 3597h?dflash?02/07 at45db321d [preliminary] 21.1 waveform 1 ? spi mode 0 compat ible (for frequencies up to 66 mhz) 21.2 waveform 2 ? spi mode 3 compat ible (for frequencies up to 66 mhz) 21.3 waveform 3 ? rapids mode 0 (f max = 66 mhz) 21.4 waveform 4 ? rapids mode 3 (f max = 66 mhz) cs sck si so t css v alid i n t h t su t wh t wl t csh t cs t v high impeda n ce v alid out t ho t dis high impeda n ce cs sck so t css v alid i n t h t su t wl t wh t csh t cs t v high z v alid out t ho t dis high impeda n ce si cs sck si so t css v alid i n t h t su t wh t wl t csh t cs t v high impeda n ce v alid out t ho t dis high impeda n ce cs sck so t css v alid i n t h t su t wl t wh t csh t cs t v high z v alid out t ho t dis high impeda n ce si
37 3597h?dflash?02/07 at45db321d [preliminary] 21.5 utilizing the rapids ? function to take advantage of the rapids function's abili ty to operate at higher clock frequencies, a full clock cycle must be used to transmit data back and forth across the serial bus. the dataflash is designed to always clock its data out on the falling edge of the sck signal and clock data in on the rising edge of sck. for full clock cycle operation to be achieved, when the dataflash is clocking data out on the fall- ing edge of sck, the host controller should wait until the next falling edge of sck to latch the data in. similarly, the host controller should clock its data out on the rising edge of sck in order to give the dataflash a full clock cycle to latc h the incoming data in on the next rising edge of sck. figure 21-1. rapids mode sck mosi miso 1 234567 8 1 234567 8 mosi = master o u t, sla v e in miso = master in, sla v e o u t the master is the host controller and the sla v e is the dataflash the master al w ays clocks data o u t on the rising edge of sck and al w ays clocks data in on the falling edge of sck. the sla v e al w ays clocks data o u t on the falling edge of sck and al w ays clocks data in on the rising edge of sck. a. master clocks o u t first b it of byte-mosi on the rising edge of sck. b. sla v e clocks in first b it of byte-mosi on the next rising edge of sck. c. master clocks o u t second b it of byte-mosi on the same rising edge of sck. d. last b it of byte-mosi is clocked o u t from the master. e. last b it of byte-mosi is clocked into the sla v e. f. sla v e clocks o u t first b it of byte-so. g. master clocks in first b it of byte-so. h. sla v e clocks o u t second b it of byte-so. i. master clocks in last b it of byte-so. a b cd e f g 1 h byte-mosi msb lsb byte-so msb lsb sla v e cs i
38 3597h?dflash?02/07 at45db321d [preliminary] 21.6 reset timing note: the cs signal should be in th e high state before the reset signal is deasserted. 21.7 command sequence for read/write operations for page size 512 bytes (e xcept status register read, manufact urer and device id read) 21.8 command sequence for read/write operations for page size 528 bytes (e xcept status register read, manufact urer and device id read) cs sck reset so (output) high impeda n ce high impeda n ce si (i n put) t rst t rec t css si (input) cmd 8 bits 8 bits 8 bits page address (a21 - a9) x x x x x x x x x x x x x x x x lsb x x x x x x x x byte/buffer address (a8 - a0/bfa8 - bfa0) msb don?t care bits page address (pa12 - pa0) byte/buffer address (ba9 - ba0/bfa9 - bfa0) si (input) cmd 8 bits 8 bits 8 bits x x x xx x x x x x x x lsb x x x x x x x x msb 1 don?t care bit x x x x
39 3597h?dflash?02/07 at45db321d [preliminary] 22. write operations the following block diagram and waveforms illustra te the various write sequences available. 22.1 buffer write 22.2 buffer to main memory page program (dat a from buffer progra mmed into flash page) flash memory array page (512/52 8 bytes) buffer 2 (512/52 8 bytes) buffer 1 (512/52 8 bytes) i/o i n terface si buffer 1 to mai n memory page program buffer 2 to mai n memory page program buffer 1 write buffer 2 write si (i n put) cmd completes w riting into selected bu ffer cs x xx, bfa9- 8 bfa7-0 n n+1 last byte bi n ary page size 15 do n' t care + bfa 8 -bfa0 si (input) cmd pa12-6 pa5-0, xx cs starts self-timed erase/program operation xxxx xx each transition represents 8 bits n = 1st byte read n+1 = 2nd byte read binary page size a21-a9 + 9 don't care bits
40 3597h?dflash?02/07 at45db321d [preliminary] 23. read operations the following block diagram and waveforms illustra te the various read sequences available. 23.1 main memory page read 23.2 main memory page to buffer transfer (data from flash page read into buffer) flash memory array page (512/52 8 bytes) buffer 2 (512/52 8 bytes) buffer 1 (512/52 8 bytes) i/o i n terface mai n memory page to buffer 1 mai n memory page to buffer 2 mai n memory page read buffer 1 read buffer 2 read so si (input) cmd pa12-6 pa5-0, ba9-8 x cs n n+1 so (output) ba7-0 4 dummy bytes x address for binary page size a21-a16 a15-a8 a7-a0 starts reading page data into buffer si (input) cmd pa12-6 pa5-0, xx cs so (output) xxxx xxxx binary page size a21-a9 + 9 don't care bits
41 3597h?dflash?02/07 at45db321d [preliminary] 23.3 buffer read 24. detailed bit-level read waveform ? ra pids serial interface mode 0/mode 3 24.1 continuous array read (legacy opcode e8h) 24.2 continuous arra y read (opcode 0bh) cmd cs n n+1 x x x..x, bfa9- 8 bfa7- 0 bi n ary page size 15 do n' t care + bfa 8 -bfa0 each transition represents 8 b its si (i n put) so (output) n o d u mmy byte (opcodes d1h and d3h) 1 d u mmy byte (opcodes d4h and d6h) sck cs si so msb msb 23 1 0 11101000 67 5 41011 9 8 12 63 66 67 65 64 62 33 34 31 32 29 30 6 8 71 72 70 69 opcode aaaa aaa aa msb xxxx xx msb msb dddddddd d d address bits 32 do n' t care bits data byte 1 high-impeda n ce bit 4095/4223 of page n bit 0 of page n+1 sck cs si so msb msb 23 1 0 00001011 67 5 41011 9 812 394243 41 40 38 33 34 31 32 29 30 44 47 48 46 45 opcode aaaa aaa aa msb xxxx xx msb msb dddddddd d d address bits a21 - a0 don't care data byte 1 high-impedance 36 37 35 x x
42 3597h?dflash?02/07 at45db321d [preliminary] 24.3 continuous array read (low frequency: opcode 03h) 24.4 main memory pa ge read (opcode: d2h) 24.5 buffer read (opcode d4h or d6h) sck cs si so msb msb 23 1 0 00000011 67 5 41011 9 812 3738 33 36 35 34 31 32 29 30 39 40 opcode aaaa aaa aa msb msb dddddddd d d address bits a21-a0 data byte 1 high-impedance sck cs si so msb msb 23 1 0 11010010 67 5 41011 9 8 12 63 66 67 65 64 62 33 34 31 32 29 30 6 8 71 72 70 69 opcode aaaa aaa aa msb xxxx xx msb msb dddddddd d d address bits 32 do n' t care bits data byte 1 high-impeda n ce sck cs si so msb msb 23 1 0 11010100 67 5 41011 9 8 12 39 42 43 41 40 37 3 8 33 36 35 34 31 32 29 30 44 47 4 8 46 45 opcode xxxx aaa xx msb xxxxxxxx msb msb dddddddd d d address bits bi n ary page size = 15 do n' t care + bfa 8 -bfa0 sta n dard dataflash page size = 14 do n' t care + bfa9-bfa0 do n' t care data byte 1 high-impeda n ce
43 3597h?dflash?02/07 at45db321d [preliminary] 24.6 buffer read (low frequ ency: opcode d1h or d3h) 24.7 read sector protecti on register (opcode 32h) 24.8 read sector lockdow n register (opcode 35h) sck cs si so msb msb 23 1 0 11010001 67 5 41011 9 8 12 37 3 8 33 36 35 34 31 32 29 30 39 40 opcode xxxx aaa xx msb msb dddddddd d d data byte 1 high-impeda n ce address bits bi n ary page size = 15 do n' t care + bfa 8 -bfa0 sta n dard dataflash page size = 14 do n' t care + bfa9-bfa0 sck cs si so msb msb 23 1 0 00110010 67 5 41011 9 8 12 37 3 8 33 36 35 34 31 32 29 30 39 40 opcode xxxx xxx xx msb msb ddddddd d d do n' t care data byte 1 high-impeda n ce sck cs si so msb msb 23 1 0 00110101 67 5 41011 9 8 12 37 3 8 33 36 35 34 31 32 29 30 39 40 opcode xxxx xxx xx msb msb ddddddd d d do n' t care data byte 1 high-impeda n ce
44 3597h?dflash?02/07 at45db321d [preliminary] 24.9 read security r egister (opcode 77h) 24.10 status register read (opcode d7h) 24.11 manufacturer and device read (opcode 9fh) sck cs si so msb msb 23 1 0 01110111 67 5 41011 9 8 12 37 3 8 33 36 35 34 31 32 29 30 39 40 opcode xxxx xxx xx msb msb ddddddd d d do n' t care data byte 1 high-impeda n ce sck cs si so msb 23 1 0 11010111 67 5 41011 9 812 2122 17 20 19 18 15 16 13 14 23 24 opcode msb msb dddddd dd d d msb dddddd d d status register data status register data high-impedance sck cs si so 6 0 9fh 8 7 3 8 opcode 1fh de v ice id byte 1 de v ice id byte 2 00h high-impeda n ce 14 16 15 22 24 23 30 32 31 n ote: each transition sho w n for si and so represents one b yte ( 8 b its)
45 3597h?dflash?02/07 at45db321d [preliminary] 25. auto page rewrite flowchart figure 25-1. algorithm for programming or reprogramming of the entire array sequentially notes: 1. this type of algorithm is used for applications in wh ich the entire array is programmed sequentially, filling the array page-by- page. 2. a page can be written using either a main memory page program operation or a buffer w rite operation followed by a buffer to main memory page program operation. 3. the algorithm above shows the programming of a single page. the algorithm will be repeated sequentially for each page within the entire array. start main memory page program through buffer (82h, 85h) end provide address and data buffer w rite (84h, 87h) buffer to main memory page program (83h, 86h)
46 3597h?dflash?02/07 at45db321d [preliminary] figure 25-2. algorithm for randomly modifying data notes: 1. to preserve data integrity, each page of a dataflash se ctor must be updated/rewritten at least once within every 10,000 cumulative page erase and program operations. 2. a page address pointer must be maintained to indicate which page is to be rewritten. the auto page rewrite command must use the address specified by the page address pointer. 3. other algorithms can be used to rewrite portions of the flash array. low-power applications may choose to wait until 10,000 cumulative page erase and program operations have accumulated before rewriting all pages of the sector. see application note an-4 (?using atmel?s serial dataflash?) for more details. start main memory page to buffer transfer (53h, 55h) increment page address pointer (2) auto page re w rite (2) (58h, 59h) end provide address of page to modify if planning to modify multiple bytes currently stored within a page of the flash array main memory page program through buffer (82h, 85h) buffer w rite (84h, 87h) buffer to main memory page program (83h, 86h)
47 3597h?dflash?02/07 at45db321d [preliminary] 26. ordering information note: 1. consult factory for new designs. 26.1 green package options (pb/halide-fr ee/rohs compliant) f sck (mhz) i cc (ma) ordering code package operation range active standby 66 15 0.05 at45db321d-mu 8m1-a industrial (-40 c to 85 c) at45db321d-su 8s2 AT45DB321D-TU 28t at45db321d-m w u8m w 26.2 legacy package options (1) f sck (mhz) i cc (ma) ordering code package operation range active standby 66 15 0.05 at45db321d-cnu 8cn3 industrial (-40 c to 85 c) package type 8cn3 8-pad, 6 mm x 8 mm, chip array small outline no lead package (cason) 8m1-a 8-contact, 6 mm x 5 mm, very thin micro lead-frame package (mlf) 8mw 8-contact, 8 mm x 6 mm, very thin micro lead-frame package (mlf) 8s2 8-lead, 0.209" wide, plastic gull w ing small outline package (eiaj soic) 28t 28-lead, 8 mm x 13.4 mm, plastic thin small outline package, type i (tsop)
48 3597h?dflash?02/07 at45db321d [preliminary] 27. packaging information 27.1 8cn3 ? cason (consul t factory for new designs) 2 3 25 orch a rd p a rkw a y sa n jo s e, ca 951 3 1 title drawing no. r rev. 8cn3, 8 -p a d (6 x 8 x 1.0 mm body), le a d pitch 1.27 mm, chip arr a y s m a ll o u tline no le a d p a ck a ge (ca s on) b 8 cn 3 7/10/0 3 note s : 1. all dimen s ion s a nd toler a nce conform to a s me y 14.5m, 1994. 2. the su rf a ce fini s h of the p a ck a ge s h a ll b e edm ch a rmille #24-27. 3 . unle ss otherwi s e s pecified toler a nce: decim a l 0.05, ang u l a r 2 o . 4. met a l p a d dimen s ion s . common dimensions (unit of me asu re = mm) symbol min nom max note a 1.0 a1 0.17 0.21 0.25 b 0.41 typ 4 d 7.90 8 .00 8 .10 e 5.90 6.00 6.10 e 1.27 b s c e1 1.095 ref l 0.67 typ 4 l1 0.92 0.97 1.02 4 pin1 p a d corner m a rked pin1 indentifier 0.10 mm typ 4 3 2 1 5 6 7 8 top view l b e l1 e1 side view a1 a bottom view e d
49 3597h?dflash?02/07 at45db321d [preliminary] 27.2 8m1-a ? mlf 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 8 m1-a, 8-lead, 6 x 5 x 1.00 mm body, very thin dual flat package no lead (mlf) a 8m1-a 12/6/04 common dimen s ion s (unit of measure = mm) s ymbol min nom max note a ? 0.85 1.00 a1 ? ? 0.05 a2 0.65 typ a3 0.20 typ b 0.35 0.40 0.48 d 6.00 typ d1 5.75 typ d2 3.20 3.40 3.60 e 5.00 typ e1 4.75 typ e2 3.80 4.00 4.20 e 1.27 l 0.50 0.60 0.75 12 o k 1.30 ref pin 1 id top view pin #1 notch (0.20 r) bottom view d2 e2 l b d1 d e1 e e a3 a2 a1 a 0.08 c 0 s ide view 0 k
50 3597h?dflash?02/07 at45db321d [preliminary] 27.3 8mw ? mlf 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 8 mw, 8-pad, 8 x 6 x 1.0 mm body, very thin dual flat package no lead (mlf) b 8mw 5/25/06 common dimen s ion s (unit of measure = mm) s ymbol min nom max note a ? ? 1.00 a1 ? ? 0.05 b 0.35 0.40 0.48 d 7.90 8.00 8.10 d1 6.30 6.40 6.50 e 5.90 6.00 6.10 e1 4.70 4.80 4.90 e 1.27 l 0.45 0.50 0.55 k 0.30 ref pin 1 id top view pin #1 id bottom view d1 e1 l b d e e a1 a s ide view k 1 pin #1 chamfer (c 0.30) option a pin #1 notch (0.20 r) option b
51 3597h?dflash?02/07 at45db321d [preliminary] 27.4 8s2 ? eiaj soic 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 8s 2 , 8-lead, 0.209" body, plastic small outline package (eiaj) 4/7/06 8s2 d common dimen s ion s (unit of measure = mm) s ymbol min nom max note notes: 1. this drawing is for general information only; refer to eiaj drawing edr-7320 for additional information. 2. mismatch of the upper and lower dies and resin burrs are not included. 3. it is recommended that upper and lower cavities be equal. if they are different, the larger dimension shall be regarded. 4. determines the true geometric position. 5. values b,c apply to plated terminal. the standard thickness of the plating layer shall measure between 0.007 to .021 mm. a 1.70 2.16 a1 0.05 0.25 b 0.35 0.48 5 c 0.15 0.35 5 d 5.13 5.35 e1 5.18 5.40 2, 3 e 7.70 8.26 l 0.51 0.85 0 8 e 1.27 bsc 4 1 1 n n e e top view t o p v i e w c c e1 e 1 end view e n d v i e w a a b b l l a1 a 1 e e d d side view s i d e v i e w
52 3597h?dflash?02/07 at45db321d [preliminary] 27.5 28t ? tsop, type 1 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 28t , 28-lead (8 x 13.4 mm) plastic thin small outline package, type i (tsop) c 28t 12/06/02 pin 1 0o ~ 5o d1 d pin 1 identifier area b e e a a1 a2 c l gage plane seating plane l1 common dimensions (unit of measure = mm) symbol min nom max note notes: 1. this package conforms to jedec reference mo-183. 2. dimensions d1 and e do not include mold protrusion. allowable protrusion on e is 0.15 mm per side and on d1 is 0.25 mm per side. 3. lead coplanarity is 0.10 mm maximum. a ? ? 1.20 a1 0.05 ? 0.15 a2 0.90 1.00 1.05 d 13.20 13.40 13.60 d1 11.70 11.80 11.90 note 2 e 7.90 8.00 8.10 note 2 l 0.50 0.60 0.70 l1 0.25 basic b 0.17 0.22 0.27 c 0.10 ? 0.21 e 0.55 basic
53 3597h?dflash?02/07 at45db321d [preliminary] 28. revision history revision level ? release date history a ? november 2005 initial release b ? january 2006 added 5 x 6 mm mlf package. added text, in ?programming the configuration register?, to indicate that power cycling is re quired to switch to ?p ower of 2? page size after the opcode enable has been executed. corrected typographical error regarding the opcode for chip erase in ?program and erase commands? table. c ? march 2006 added preliminary. changed the sector size from 256k bytes to 64k bytes. added the ?legacy commands? table. d ? april 2006 added 6 x 8 mm mlf package. changed the sector size of 0a and 0b to 8 pages and 120 pages respectively. changed the product version code to 00001. e ? july 2006 corrected typographical errors. f ? august 2006 added errata regarding chip erase. added at45db321d-su to ordering information and corresponding 8s2 package. g ? september 2006 removed ?not recommended for new designs? note from ordering information for 8m w package. h ? february 2007 added at45db321d-cnu to ordering information and corresponding 8cn3 package. removed ?not recommended for new designs? comment from 8m w package drawing.
54 3597h?dflash?02/07 at45db321d [preliminary] 29. errata 29.1 chip erase 29.1.1 issue in a certain percentage of units, the chip erase feature may not function correctly and may adversely affect device operation. therefore, it is recommended that the chip erase commands (opcodes c7h, 94h, 80h, and 9ah) not be used. 29.1.2 workaround use block erase (opcode 50h) as an alternative. the block erase function is not affected by the chip erase issue. 29.1.3 resolution the chip erase feature may be fixed with a new revision of the device. please contact atmel for the estimated availability of devices with the fix.
3597h?dflash?02/07 disclaimer: the information in this document is provided in connection with atmel products. no license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in atmel?s terms and condi- tions of sale located on atmel? s web site, atmel assumes no liability whatsoever and disclaims any express, implied or statutor y warranty relating to its products including, but not limited to , the implied warranty of merchantability, fitness for a particu lar purpose, or non-infringement. in no event shall atmel be liable for any direct, indirect, conseque ntial, punitive, special or i nciden- tal damages (including, without limitation, damages for loss of profits, business interruption, or loss of information) arising out of the use or inability to use this document, even if at mel has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or co mpleteness of the contents of this document and reserves the rig ht to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information contained her ein. unless specifically provided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel?s products are not int ended, authorized, or warranted for use as components in applications in tended to support or sustain life. atmel corporation atmel operations 2325 orchard parkway san jose, ca 95131, usa tel: 1(408) 441-0311 fax: 1(408) 487-2600 regional headquarters europe atmel sarl route des arsenaux 41 case postale 80 ch-1705 fribourg switzerland tel: (41) 26-426-5555 fax: (41) 26-426-5500 asia room 1219 chinachem golden plaza 77 mody road tsimshatsui east kowloon hong kong tel: (852) 2721-9778 fax: (852) 2722-1369 japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel: (81) 3-3523-3551 fax: (81) 3-3523-7581 memory 2325 orchard parkway san jose, ca 95131, usa tel: 1(408) 441-0311 fax: 1(408) 436-4314 microcontrollers 2325 orchard parkway san jose, ca 95131, usa tel: 1(408) 441-0311 fax: 1(408) 436-4314 la chantrerie bp 70602 44306 nantes cedex 3, france tel: (33) 2-40-18-18-18 fax: (33) 2-40-18-19-60 asic/assp/smart cards zone industrielle 13106 rousset cedex, france tel: (33) 4-42-53-60-00 fax: (33) 4-42-53-60-01 1150 east cheyenne mtn. blvd. colorado springs, co 80906, usa tel: 1(719) 576-3300 fax: 1(719) 540-1759 scottish enterprise technology park maxwell building east kilbride g75 0qr, scotland tel: (44) 1355-803-000 fax: (44) 1355-242-743 rf/automotive theresienstrasse 2 postfach 3535 74025 heilbronn, germany tel: (49) 71-31-67-0 fax: (49) 71-31-67-2340 1150 east cheyenne mtn. blvd. colorado springs, co 80906, usa tel: 1(719) 576-3300 fax: 1(719) 540-1759 biometrics avenue de rochepleine bp 123 38521 saint-egreve cedex, france tel: (33) 4-76-58-47-50 fax: (33) 4-76-58-47-60 literature requests www.atmel.com/literature ? 2007 atmel corporation . all rights reserved. atmel ? , logo and combinations thereof, everywhere you are ? , dataflash ? and others, are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks o f others.


▲Up To Search▲   

 
Price & Availability of AT45DB321D-TU

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X